<script setup lang="ts">
import {ref} from 'vue'
import {userStore} from "../../store/user.ts";
import request from "@/api/request.js";

defineProps<{ msg: string }>()

const count = ref(0)
const showStore = () => {
  console.log(userStore().userInfo)
}

const sendReq = () => {
  request.get('/aaa').then((res: any) => {
    console.log(res.data)
  })
}

</script>

<template>
  <h3>{{ msg }}</h3>

  <button @click="count++">{{ count }}</button>

  <button @click="showStore">showStore</button>


  <button @click="sendReq">sendReq</button>

</template>

<style scoped>
</style>
